<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<?php echo base_url('css2/public_backend.css');?>" />
<title></title>
</head>
<body>
<table class="list_table">
	<tr>
			<th class="th" colspan="10">用户信息</th>
		</tr>
		<tr>
		 <th>用户名</th>
		 <th>角色</th>
		 <th>权限</th>
		 <th>上次登陆时间</th>
		 <th>操作</th>
		</tr>
<?php foreach($users as $user):
$login_time=date("Y-m-d H:i:s",$user['oper']['login_time']);
$u_id=$user['oper']['u_id'];
$editUrl=site_url('admin/main/edit').'/'.$u_id;
print <<<E
	<tr>
	<td>{$user['u_name']}</td>
	<td>{$user['oper']['role_name']}</td>
	<td>{$user['oper']['perm_name']}</td>
	<td>{$login_time}</td>
    <td><a href='{$editUrl}' target='self'>[编辑]</a></td>
	</tr>

E;
endforeach;
?>
	
</table>

</body>
</html>